// wow
// new WOW().init();


//banner 轮播
var swiper1 = new Swiper('.swiper-container', {
    //距离
    spaceBetween: 30,
    //默认居中
    centeredSlides: true,
    loop : true,
    autoplay: {
      delay:3000,
      disableOnInteraction:true,
    },
    pagination: {
      el: '.swiper-pagination',
      clickable: true,
    },
  });
  
  // 另一部分
$(function(){
    $('.photo-c').on('mouseover',function(){
        $(this).children('.dis').fadeTo('.dis',0);
    })
    $('.photo-c').on('mouseout',function(){
      $(this).children('.dis').fadeTo('.dis',1);
  })
// 家居办公
    $('.content .item .item-t-t').click(function(){
      var index = $(this).index();
      console.log(index)
     var widths= $('.product .photo').width()
     console.log(widths)
      var w=-(index*widths);
      console.log(w)
    $(this).addClass('on').siblings().removeClass('on')
     $('.product .rodut:eq(0)').stop().animate({'left':w},1000)
    })
    //产品中心 1
    $('.icon .icon-t').click(function(){
      var index = $(this).index();
     var widths= $('.present .pic').width()
      var w=-(index*widths);
      console.log(w)
    $(this).addClass('onpics').siblings().removeClass('onpics')
     $('.present .pics:eq(0)').stop().animate({'left':w},1000)
    })
     //产品中心 2
     $('.icon-item .icon-item-t').click(function(){
      var index = $(this).index();
     var widths= $('.present .pic').width()
      var w=-(index*widths);
      console.log(w)
    $(this).addClass('onpics-icon').siblings().removeClass('onpics-icon')
     $('.present .pics:eq(0)').stop().animate({'left':w},1000)
    })
    //服务范围
    $('.surplus .order .des').click(function(){
      var index = $(this).index();
     var widths= $('.surplus .surplus-c').width()
      var w=-(index*widths);
      console.log(w)
    $(this).addClass('onsurp-c').siblings().removeClass('onsurp-c')
     $('.surplus .surplus-ccc:eq(0)').stop().animate({'left':w},1000)
    })
})


  

